package tw.com.softleader.fire.setting.entity;

import java.math.BigDecimal;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import tw.com.softleader.fire.common.entity.GenericEntity;
/**
 * 
 * @author mdoing2001
 *
 */
@Entity
@Table(name="SET_DEDUCTIBLE")
public class DeductibleEntity extends GenericEntity {
	
	@Column(name="CODE", length=10, unique=true)
	private String code;
	
	@Column(name="NAME", length=10)
	private String name;
	
	@Column(name="RATE",columnDefinition="numeric(3,2)")
	private BigDecimal rate ;
	
	@Column(name="MINTSI", columnDefinition="numeric(15)")
	private BigDecimal mintsi;
	
	@Column(name="MAXTSI", columnDefinition="numeric(15)")
	private BigDecimal maxtsi;
	
	@Column(name="LOCATION", length=100)
	private String location;

	
	

	@Override
	public String toString() {
		return "DeductibleEntity [code=" + code + ", name=" + name + ", rate="
				+ rate + ", mintsi=" + mintsi + ", maxtsi=" + maxtsi
				+ ", location=" + location + ", id=" + id + ", createTime="
				+ createTime + ", creator=" + creator + ", modifiedTime="
				+ modifiedTime + ", modifier=" + modifier + "]";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getRate() {
		return rate;
	}

	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	public BigDecimal getMintsi() {
		return mintsi;
	}

	public void setMintsi(BigDecimal mintsi) {
		this.mintsi = mintsi;
	}

	public BigDecimal getMaxtsi() {
		return maxtsi;
	}

	public void setMaxtsi(BigDecimal maxtsi) {
		this.maxtsi = maxtsi;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
}
